<?php
namespace App\Repositories\GameServer;

use App\Models\GameServer\PlayRecordDetail;


class PlayRecordDetailRepository
{
    //获取某玩家账变记录
    public function getPlayRecords($id)
    {
        $res = PlayRecordDetail::with('room')->where('account_id', $id)->orderBy('id', 'desc')->get();

        return $res;
    }
}